/**
 * 枚举
 */
class Enum extends Map {
    options({ valueKey = 'value', labelKey = 'label' } = {}) {
        return Array.from(this.entries()).map(([k, v]) => ({
            [valueKey]: k,
            [labelKey]: v,
        }));
    }
}

export default Enum;
